﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WeMakeSP.Platform.SharePoint.BusinessEntities;

namespace WeMakeSP.SiteManagement.UI.Models
{
    /// <summary>
    /// The interface sor site hierarchy models.
    /// </summary>
    public interface ISiteHierarchyModel
    {
        #region Methods

        /// <summary>
        /// Gets the web configuration.
        /// </summary>
        /// <param name="webName">Name of the web.</param>
        /// <returns></returns>
        SPWebConfiguration GetWebConfiguration(string webName);

        /// <summary>
        /// Updates the webs logo.
        /// </summary>
        /// <param name="webIds">The web ids.</param>
        /// <param name="webLogo">The web logo.</param>
        void UpdateWebsLogo(List<Guid> webIds, SPWebLogo webLogo);

        /// <summary>
        /// Updates the webs master page.
        /// </summary>
        /// <param name="webIds">The web ids.</param>
        /// <param name="masterPage">The master page.</param>
        void UpdateWebsMasterPage(List<Guid> webIds, SPMasterPage masterPage);

        /// <summary>
        /// Updates the webs theme.
        /// </summary>
        /// <param name="webIds">The web ids.</param>
        /// <param name="theme">The theme.</param>
        void UpdateWebsTheme(List<Guid> webIds, string theme);
        
        #endregion
    }
}
